<?php

namespace Database\Seeders;

use App\Models\OpenAPI;
use Illuminate\Database\Seeder;

class InitOpenAPISeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        OpenAPI::factory(10)->create();
        $api = OpenAPI::find(1);
        $api->update([
            'api_token' => 'GG_ESS_dNEae3fAXVI1uBqPJQvYIOfwyhFFQx4xq2StuKDCS7MbsLSo1sCKRkYgilgUZ7G0',
            'valid' => 1,
            'remarks' => '四象'
            ]
        );
    }

}
